/**
 * Generate time : 2011-06-01 16:35:33
 * Version : 1.0.1.V20070717
 */
package com.baosight.sczx.zm.cs.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;

/**
 * ZMCSOtherDesign table comment : 其他
 */
public class ZMCSOtherDesign extends DaoEPBase {

	private String fdKeyId = " "; /* FD_KEY_ID */
	private String fdEngineeringdesignId = " "; /* 工程设计ID */
	private String fdNo = " "; /* 编号 */
	private String fdName = " "; /* 名称 */
	private String fdAbbreviation = " "; /* 简称 */
	private String fdDeleteStatus = " ";
	private String fdRemarks = " "; /* 备注 */
	private String fdTableName = " "; /* 该表名称 */

	/**
	 * initialize the metadata
	 */
	public void initMetaData() {
		EiColumn eiColumn;

		eiColumn = new EiColumn("fdKeyId");
		eiColumn.setPrimaryKey(true);
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("FD_KEY_ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdEngineeringdesignId");
		eiColumn.setFieldLength(32);
		eiColumn.setDescName("工程设计ID");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdNo");
		eiColumn.setFieldLength(10);
		eiColumn.setDescName("编号");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdName");
		eiColumn.setFieldLength(30);
		eiColumn.setDescName("名称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdAbbreviation");
		eiColumn.setFieldLength(20);
		eiColumn.setDescName("简称");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdDeleteStatus");
		eiColumn.setFieldLength(1);
		eiColumn.setDescName(" ");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdRemarks");
		eiColumn.setFieldLength(500);
		eiColumn.setDescName("备注");
		eiMetadata.addMeta(eiColumn);

		eiColumn = new EiColumn("fdTableName");
		eiColumn.setFieldLength(50);
		eiColumn.setDescName("表名称");
		eiMetadata.addMeta(eiColumn);

	}

	/**
	 * the constructor
	 */
	public ZMCSOtherDesign() {
		initMetaData();
	}

	/**
	 * get the fdKeyId - FD_KEY_ID
	 * 
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}

	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}

	/**
	 * get the fdEngineeringdesignId - 工程设计ID
	 * 
	 * @return the fdEngineeringdesignId
	 */
	public String getFdEngineeringdesignId() {
		return this.fdEngineeringdesignId;
	}

	/**
	 * set the fdEngineeringdesignId - 工程设计ID
	 */
	public void setFdEngineeringdesignId(String fdEngineeringdesignId) {
		this.fdEngineeringdesignId = fdEngineeringdesignId;
	}

	/**
	 * get the fdNo - 编号
	 * 
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}

	/**
	 * set the fdNo - 编号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}

	/**
	 * get the fdName - 名称
	 * 
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}

	/**
	 * set the fdName - 名称
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}

	/**
	 * get the fdAbbreviation - 简称
	 * 
	 * @return the fdAbbreviation
	 */
	public String getFdAbbreviation() {
		return this.fdAbbreviation;
	}

	/**
	 * set the fdAbbreviation - 简称
	 */
	public void setFdAbbreviation(String fdAbbreviation) {
		this.fdAbbreviation = fdAbbreviation;
	}

	/**
	 * get the fdDeleteStatus
	 * 
	 * @return the fdDeleteStatus
	 */
	public String getFdDeleteStatus() {
		return this.fdDeleteStatus;
	}

	/**
	 * set the fdDeleteStatus
	 */
	public void setFdDeleteStatus(String fdDeleteStatus) {
		this.fdDeleteStatus = fdDeleteStatus;
	}

	/**
	 * get the fdRemarks - 备注
	 * 
	 * @return the fdRemarks
	 */
	public String getFdRemarks() {
		return this.fdRemarks;
	}

	/**
	 * set the fdRemarks - 备注
	 */
	public void setFdRemarks(String fdRemarks) {
		this.fdRemarks = fdRemarks;
	}

	/**
	 * @return the fdTableName
	 */
	public String getFdTableName() {
		return fdTableName;
	}

	/**
	 * @param fdTableName
	 *            the fdTableName to set
	 */
	public void setFdTableName(String fdTableName) {
		this.fdTableName = fdTableName;
	}

	/**
	 * get the value from Map
	 */
	@SuppressWarnings("rawtypes")
	public void fromMap(Map map) {

		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdEngineeringdesignId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdEngineeringdesignId")), fdEngineeringdesignId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdAbbreviation(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdAbbreviation")), fdAbbreviation));
		setFdDeleteStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdDeleteStatus")), fdDeleteStatus));
		setFdRemarks(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdRemarks")), fdRemarks));
		setFdTableName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdTableName")), fdTableName));
	}

	/**
	 * set the value to Map
	 */
	@SuppressWarnings({ "rawtypes", "unchecked" })
	public Map toMap() {

		Map map = new HashMap();
		map.put("fdKeyId", StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));
		map.put("fdEngineeringdesignId", StringUtils.toString(fdEngineeringdesignId, eiMetadata.getMeta("fdEngineeringdesignId")));
		map.put("fdNo", StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));
		map.put("fdName", StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));
		map.put("fdAbbreviation", StringUtils.toString(fdAbbreviation, eiMetadata.getMeta("fdAbbreviation")));
		map.put("fdDeleteStatus", StringUtils.toString(fdDeleteStatus, eiMetadata.getMeta("fdDeleteStatus")));
		map.put("fdRemarks", StringUtils.toString(fdRemarks, eiMetadata.getMeta("fdRemarks")));
		map.put("fdTableName", StringUtils.toString(fdTableName, eiMetadata.getMeta("fdTableName")));

		return map;

	}
}